<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head th:replace="_fragments :: head(~{::title})">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>分类页面</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../static/css/mecss.css">
    <link rel="stylesheet" href="../static/css/blog-background.css">
</head>

<body>
<!--导航-->
<nav th:replace="_fragments :: menu(2)" class="ui inverted attached segment m-padded-tb-mini m-shadow-small">
    <div class="ui container">
        <div class="ui inverted secondary stackable menu">
            <h2 class="ui teal header item">Meteor</h2>
            <a href="#" class="m-item item m-mobile-hide"><i class="mini home icon m-margin-biaoqian"></i>首页</a>
            <a href="#" class="active m-item item m-mobile-hide"><i
                    class="mini idea icon m-margin-biaoqian"></i>分类</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="mini tags icon m-margin-biaoqian"></i>标签</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="mini clone icon m-margin-biaoqian"></i>归档</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="mini info icon m-margin-biaoqian"></i>关于我</a>
            <div class="right m-item item m-mobile-hide">
                <div class="ui icon input">
                    <input type="text" placeholder="搜索...">
                    <i class="search link icon"></i>
                </div>
            </div>
        </div>
    </div>
    <a href="#" class="ui menu toggle black icon button m-top-right m-mobile-show">
        <i class="sidebar icon"></i>
    </a>
</nav>
<!--中间内容-->
<div class="m-container-small m-padded-tb-big">
    <div class="ui container type">
        <div class="ui raised very padded text container segment rounded">
            <h4 class="ui horizontal divider header animated swing">
                <i class="tag icon animated swing"></i><font style="vertical-align: inherit;"><font class="typeC"
                                                                                                    style="vertical-align: inherit;">
                分类
            </font></font></h4>
            <div class="ui huge label animate__animated animate__fadeInDown typeC"
            ><font style="vertical-align: inherit;"><a th:href="@{/byType/{id}(id=${type.id})}"  th:each="type:${types}" th:text="${type.type}" th:if="${typeStat.count}==1" style="color: red" class="typeC"><font
                    style="vertical-align: inherit;">
                巨大的
            </font></a></font></div>
            <div class="ui tiny label animate__animated animate__bounce typeC"><font style="vertical-align: inherit;"><a th:href="@{/byType/{id}(id=${type.id})}"
                    th:each="type:${types}"
                    th:text="${type.type}" th:if="${typeStat.count}==2" href="" class="typeC" style="color: #0d71bb"><font
                    style="vertical-align: inherit;" >
                微小的
            </font></a></font></div>
            <div class="ui large label animate__animated animate__wobble typeC"><font
                    style="vertical-align: inherit;"><a th:href="@{/byType/{id}(id=${type.id})}" th:each="type:${types}"
                                                        th:text="${type.type}" th:if="${typeStat.count}==3" href="" style="color: #0ea432"><font
                    style="vertical-align: inherit;">
                大的
            </font></a></font></div>
            <div class="ui small label animate__animated animate__bounceInUp typeC"><font
                    style="vertical-align: inherit;"><a th:href="@{/byType/{id}(id=${type.id})}" th:each="type:${types}"
                                                        th:text="${type.type}" th:if="${typeStat.count}==4" href="" style="color: #cd9903"><font
                    style="vertical-align: inherit;">
                小的
            </font></a></font></div>
            <div class="ui big label animate__animated animate__bounceIn typeC"><font
                    style="vertical-align: inherit;"><a th:href="@{/byType/{id}(id=${type.id})}" th:each="type:${types}"
                                                        th:text="${type.type}" th:if="${typeStat.count}==5" href="" style="color: #ee77aa"><font
                    style="vertical-align: inherit;">
                大的
            </font></a></font></div>
            <div class="ui massive label animate__animated animate__rubberBand typeC"><font
                    style="vertical-align: inherit;"><a th:href="@{/byType/{id}(id=${type.id})}" th:each="type:${types}"
                                                        th:text="${type.type}" th:if="${typeStat.count}==6" href="" style="color: lightgreen"><font
                    style="vertical-align: inherit;">
                大量的
            </font></a></font></div>
            <div class="ui label animate__animated animate__fadeInUp typeC"><font style="vertical-align: inherit;"><a
                    th:href="@{/byType/{id}(id=${type.id})}" th:each="type:${types}"
                    th:text="${type.type}" th:if="${typeStat.count}==7"  href="" style="color: #FF00FF"><font
                    style="vertical-align: inherit;">
                中等的
            </font></a></font></div>
            <div class="ui huge label animate__animated animate__wobble typeC"><font style="vertical-align: inherit;"><a
                    th:href="@{/byType/{id}(id=${type.id})}" th:each="type:${types}"
                    th:text="${type.type}" th:if="${typeStat.count} >7" href="" style="color: mediumspringgreen"><font
                    style="vertical-align: inherit;">
                巨大的
            </font></a></font></div>
        </div>
<br>
<br>
        <input type="hidden" value="${code}" id="code">
        <div id="contentLister">
            <div th:each="blog:${blogs}" class="ui attached animate__animated animate__fadeInUp">
                <div class="d-web-info-box" data-wow-duration="0.4s">
                    <div class="ui mobile stackable grid">
                        <div class="seven wide column" style="overflow: hidden;"><a th:href="@{/blog/{id}(id=${blog.id})}" href="javascript:;"><img id="firstPicture"
                                                                                                                                                    class="ui rounded image centered Itemimg" th:src="${blog.picture}"
                                                                                                                                                    src="https://w.wallhaven.cc/full/y8/wallhaven-y8lqo7.jpg"></a></div>
                        <div class="nine wide column h-padded-td-large"><a th:href="@{/blog/{id}(id=${blog.id})}" href="javascript:;"><h3
                                th:text="${blog.title}" id="t" class="ui header titleSuspension">本博客技术总结及更新</h3></a>
                            <p class="m-text" th:text="|${blog.description}....|">1.技术介绍
                                前端：
                                semanticUi+layui+jquery+ animate.css

                                后端：
                                springBoot + MyBatisPlus + Mysql

                                插件:
                                editorMd+prismjs+ Tocbot+jquery.waypoints.js+APlayer

                                2.运行环境
                                开发工具：IDEA......</p>
                            <div class="ui grid">
                                <div class="wide column">
                                    <div class="ui mini horizontal link list">
                                        <div class="item">
                                            <div class="content"><span class="header"><i
                                                    class="user outline red  icon"></i>Meteor</span></div>
                                        </div>
                                        <div class="item"><i class="clock outline blue icon"></i><span
                                                th:text="${blog.createTime}">2000-10-10</span>
                                        </div>
                                        <div class="item"><i class="eye green icon"></i><span
                                                th:text="${blog.views}">173</span></div>
                                        <div class="item"><i class="comment alternate outline orange icon"></i>
                                            3
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
</div>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<!-- 底部 -->
<footer th:replace="_fragments :: footer" class="ui inverted attached segment m-padded-tb-massive">
    <div class="ui center aligned container">
        <div class="ui inverted divided stackable grid">
            <div class="three wide column">
                <div class="ui inverted link list">
                    <div class="item">
                        <img src="../static/image/myvx.jpg" class="ui rounded image" alt="" style="width:100px">
                    </div>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">最新博客</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">用户故事</a>
                    <a href="#" class="item">用户故事</a>
                    <a href="#" class="item">用户故事</a>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">最新博客</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">用户故事</a>
                    <a href="#" class="item">用户故事</a>
                    <a href="#" class="item">用户故事</a>
                </div>
            </div>
            <div class="seven wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">最新博客</h4>
                <p class="m-text-thin m-text-spaced m-opacity-mini">哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈</p>
            </div>
        </div>
        <div class="ui inverted section divider"></div>
        <p class="m-text-thin m-text-spaced m-opacity-tiny">Copright @ 2222 Meteor Designed By </p>
    </div>

</footer>

<th:block th:replace="_fragments :: script">
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
</th:block>

<script>
    $(".menu.toggle").click(function () {
        $(".m-item").toggleClass("m-mobile-hide");
    });

    var code = $("#code").val();
    $(".typeC").click(function () {
        if(code != 1) {
            $("#contentLister").hide();
        }
    })
</script>
</body>

</html>